package com.hspedu.extends_;

/**
 * @Author Stringzhua
 * @Date 2024/3/1 16:20
 * description:小学生类
 * 模拟小学生考试
 */
public class Pupil {
    public String name;
    public int age;
    private double score;

    public void setScore(double score) {
        this.score = score;
    }

    public void testing() {
        System.out.println("小学生" + name + "  正在考小学数学...");
    }

    public void showInfo() {
        System.out.println("小学生名字是" + name + "  年龄" + age + "  成绩" + score);
    }
}
